So the locomotive should pull the front car, second car, third car etc . all with the maximum length of the connector, until either the train is moving slowly or else it is totally stopped because the coefficient of static friction on the last car, plus the coefficient of rolling friction on the cars already moving, is enough to totally counter the front locomotive's pull.